        self.serial_widget = SerialWidget(self)
        self.serial_widget.setObjectName("serial_widget")  # 关键步骤